# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=fdupes
pkgver=2.2.1
pkgrel=1
pkgdesc="identifying or deleting duplicate files residing within specified directories"
url="https://github.com/adrianlopezroche/fdupes"
arch="all"
license="MIT"
makedepends="ncurses-dev pcre2-dev"
subpackages="$pkgname-doc"
source="https://github.com/adrianlopezroche/fdupes/releases/download/v$pkgver/fdupes-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" PREFIX="/usr" install
}

sha512sums="
4911d2f776480691e7bd7045c181d49159add5b479188b05f0878a7af365cee0e430093e71ff172c04b876c58efc3be0f24c9d25f0cdebf1c869931175bc8608  fdupes-2.2.1.tar.gz
"
